﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.MODEL.GroupMember;

namespace MINERP.GroupMember.Presenter
{
    public delegate void SelectedTask();
    public class DataTransfer
    {
        public static event SelectedTask SelectedTaskEvent;

        /// <summary>
        /// 用户ID
        /// </summary>
        public static int UserId { get; set; }
        public static string UserName;
        public static string GroupName;
        public static bool IsUseCamero;//是否使用Camero Raw进行调色的

        private static bool _isOpen = false;
        public static bool taskFrmIsOpen { get { return _isOpen; } set { _isOpen = value; } }//任务界面是否已打开
        public static bool IsOriPicOver;//是否原片完成，即用开单时的片完成设计，这里只是走一个设计的流程而已

        public static bool IsAutoGetTask = false;
        private static TaskInfo _seletTask;
        public static TaskInfo SelectTaskInfo
        {
            get { return _seletTask; }
            set
            {
                _seletTask = value;
                if (value != null)
                {
                    SelectedTaskEvent();
                }
            }
        }

        public static List<TaskInfo> taskList = new List<TaskInfo>();
        public static int PicCount = 0;
        public static double PicAreaCount = 0;
        public static int RebackType = 0;//退回的类型0:退回给组长 1:退回到上一节点
    }
}
